package guda.mrpc.core.config;


import guda.mrpc.core.client.loadblance.LoadBalance;
import guda.mrpc.core.registry.ServiceRegistry;
import guda.mrpc.core.serialize.ObjectSerialize;

import java.util.List;

/**
 * Created by well on 17/5/23.
 */
public class ClientConfig {


    private String serverAddr;

    private ObjectSerialize objectSerialize;

    private String appId = "default";

    private boolean isHttp;

    private LoadBalance loadBalance;

    private int retryCount = 3;

    private List<Class<?>> referers;

    private ServiceRegistry serviceRegistry;

    public ServiceRegistry getServiceRegistry() {
        return serviceRegistry;
    }

    public void setServiceRegistry(ServiceRegistry serviceRegistry) {
        this.serviceRegistry = serviceRegistry;
    }

    public String getServerAddr() {
        return serverAddr;
    }

    public void setServerAddr(String serverAddr) {
        this.serverAddr = serverAddr;
    }

    public ObjectSerialize getObjectSerialize() {
        return objectSerialize;
    }

    public void setObjectSerialize(ObjectSerialize objectSerialize) {
        this.objectSerialize = objectSerialize;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public boolean isHttp() {
        return isHttp;
    }

    public void setIsHttp(boolean isHttp) {
        this.isHttp = isHttp;
    }

    public LoadBalance getLoadBalance() {
        return loadBalance;
    }

    public void setLoadBalance(LoadBalance loadBalance) {
        this.loadBalance = loadBalance;
    }

    public int getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(int retryCount) {
        this.retryCount = retryCount;
    }

    public List<Class<?>> getReferers() {
        return referers;
    }

    public void setReferers(List<Class<?>> referers) {
        this.referers = referers;
    }

}
